libxl: Don't dereference null new_name pointer in libxl_domain_rename()
authorEuan Harris <euan.harris@citrix.com>
Mon, 1 Dec 2014 14:27:06 +0000 (14:27 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 2 Dec 2014 14:18:57 +0000 (14:18 +0000)
commit276ba7806259c10b186c9cd9115078fb35b28bc7
treeeb1e58d20edbfc3bee769870765977db51079ad0
parente3abab74598d96de87e3cbcaf1d567ac854e53cf
libxl: Don't dereference null new_name pointer in libxl_domain_rename()

libxl__domain_rename() unconditionally dereferences its new_name
parameter, to check whether it is an empty string.   Add a check to
avoid a segfault if new_name is null.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c